﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YYSite.Common;
using YYSite.Common.NHibernate;
using YYSite.Domain.BaseData.Grades;

namespace YYSite.Repository.BaseData.Grades
{
    public class GradeRepository : Repository<Grade>, IGradeRepository
    {
        public GradeRepository(ITransactionManager transactionManager) : base(transactionManager)
        {
        }

        public DataGridOutput<Grade> GetGradeByPage(GetGradeDataGridInput input)
        {
            input.Initialize();
            string sql = "SELECT * FROM  [BaseData].[Grade]"+input.GetSQL();
            return this.Session.QueryPaged<Grade>( sql,input.GetParameters(), input.GetOrderBy(),input);

        }
    }
}


